<?php $actions = $this->configuration->getListSlotActions() ?>
[?php slot('<?php echo $this->configuration->getListSlotName() ?>') ?]
<?php foreach ($actions as $name => $params): ?>
<?php if (isset($params['condition'])): ?>
  [?php if ($sf_user-><?php echo $params['condition'] ?>()): ?]
<?php endif; ?>
  <?php if ('_new' == $name): ?>
    <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToNew('.$this->asPhp($params).') ?]', $params) ?>
  <?php elseif ('_close' == $name): ?>
    <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToClose('.$this->asPhp($params).') ?]', $params) ?>
  <?php elseif ('_homepage' == $name): ?>
    <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToHomepage('.$this->asPhp($params).') ?]', $params) ?>
  <?php elseif ($this->configuration->hasCart() && in_array($name, array('_cart_add', '_cart_add_all', '_cart_manipulate', '_cart_reset'))): ?>
    <?php //CART ACTIONS ?>
    <?php if ('_cart_reset' == $name) : ?>
      [?php if (count($cart_objects) > 0): ?]
        <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToCartReset('.$this->asPhp($params).') ?]', $params) ?>
      [?php endif ?]
    <?php elseif ('_cart_add' == $name): ?>
      <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToCartAdd('.$this->asPhp($params).') ?]', $params) ?>
    <?php elseif ('_cart_add_all' == $name): ?>
      <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToCartAddAll('.$this->asPhp($params).') ?]', $params) ?>
    <?php elseif ('_cart_manipulate' == $name): ?>
      [?php if (count($cart_objects) > 0): ?]
        <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToCartManipulate('.$this->asPhp($params).') ?]', $params) ?>
      [?php endif ?]
    <?php endif ?>
  <?php //EXPORT ACTIONS ?>
  <?php elseif (in_array($name, array('_exportation', '_user_exportation'))): ?>
    <?php if ($this->configuration->isExportationEnabled()): ?>
      <?php if ('_exportation' == $name): ?>
        <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToExportation('.$this->asPhp($params).') ?]', $params) ?>
      <?php elseif ('_user_exportation' == $name): ?>
        <?php echo $this->addCredentialCondition('[?php echo $helper->slotActionToUserExportation('.$this->asPhp($params).') ?]', $params) ?>
      <?php endif ?>
    <?php endif ?>
  <?php elseif (strstr($name, '_cart') === false): ?>
    <?php echo $this->addCredentialCondition($this->getSlotAction($name, $params, false), $params) ?>
  <?php endif; ?>
<?php if (isset($params['condition'])): ?>
  [?php endif; ?]
<?php endif; ?>
<?php endforeach; ?>
[?php end_slot() ?]
